package com.protocol.translator;

import org.apache.camel.builder.RouteBuilder;

/**
 * @Description: modbus转http
 * @Author: Simon
 * @LastModified: 2023/12/29
 */
//@Component
public class ModBusToHttpRouter extends RouteBuilder {
    @Override
    public void configure() throws Exception {
        from("modbus:tcp://localhost:502?...")
                .transform().method("myTransformBean", "transformMethod")
                .to("http://myhttpserver.com/api/data");
    }
}
